/**
 * Created by cxj on 2016/2/22.
 */
var grid;
define([
    "jquery",
    "IO",
    "bootbox"
], function($,IO,bootbox) {
    $(function () {

        //每列数据列性
        var columns = [

            {title : '编号',dataIndex :'User_ID',dataSource:function(data,datarow,gridobj,current_column) {

                return "<span>"+parseInt( (gridobj.current_page-1)*gridobj.page_rows+parseInt(datarow)+1)+"</span>";
            }},
            //{ title: '种类id', dataIndex: 'type_id',},
            { title: '名称', dataIndex: 'name',},



        ];


        //数组初始化

        function dataInit() {
            grid = new Grid("/budget/getHouseTypeList", $("#table_my_toast"), $("#paging_my_toast"), 1, 10, columns, get_input_param(), 20);

            //初始化
            grid.Init();
        }

        //获取输入框内容
        function get_input_param() {

            var param="";

            return param;

        }
        dataInit();
        //查询
        $("#query").bind("click", function () {
            dataInit();
        });
    });


});